package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.SoftBusinessCategory;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLBigDecimalTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class SoftBusinessCategoryProxy extends AbstractProxyEntity<SoftBusinessCategoryProxy, SoftBusinessCategory> {

    private static final Class<SoftBusinessCategory> entityClass = SoftBusinessCategory.class;

    public static final SoftBusinessCategoryProxy TABLE = createTable().createEmpty();

    public static SoftBusinessCategoryProxy createTable() {
        return new SoftBusinessCategoryProxy();
    }

    public SoftBusinessCategoryProxy() {
    }

    /**
     * 分类ID
     * {@link SoftBusinessCategory#getCategoryId}
     */
    public SQLStringTypeColumn<SoftBusinessCategoryProxy> categoryId() {
        return getStringTypeColumn("categoryId");
    }

    /**
     * 分类名称
     * {@link SoftBusinessCategory#getCategoryName}
     */
    public SQLStringTypeColumn<SoftBusinessCategoryProxy> categoryName() {
        return getStringTypeColumn("categoryName");
    }

    /**
     * 分类父ID
     * {@link SoftBusinessCategory#getCategoryParentId}
     */
    public SQLStringTypeColumn<SoftBusinessCategoryProxy> categoryParentId() {
        return getStringTypeColumn("categoryParentId");
    }

    /**
     * {@link SoftBusinessCategory#getSystemId}
     */
    public SQLStringTypeColumn<SoftBusinessCategoryProxy> systemId() {
        return getStringTypeColumn("systemId");
    }

    /**
     * 序号
     * {@link SoftBusinessCategory#getCategorySeq}
     */
    public SQLBigDecimalTypeColumn<SoftBusinessCategoryProxy> categorySeq() {
        return getBigDecimalTypeColumn("categorySeq");
    }

    @Override
    public Class<SoftBusinessCategory> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public SoftBusinessCategoryProxyFetcher FETCHER = new SoftBusinessCategoryProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class SoftBusinessCategoryProxyFetcher extends AbstractFetcher<SoftBusinessCategoryProxy, SoftBusinessCategory, SoftBusinessCategoryProxyFetcher> {

        public SoftBusinessCategoryProxyFetcher(SoftBusinessCategoryProxy proxy, SoftBusinessCategoryProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * 分类ID
         * {@link SoftBusinessCategory#getCategoryId}
         */
        public SoftBusinessCategoryProxyFetcher categoryId() {
            return add(getProxy().categoryId());
        }

        /**
         * 分类名称
         * {@link SoftBusinessCategory#getCategoryName}
         */
        public SoftBusinessCategoryProxyFetcher categoryName() {
            return add(getProxy().categoryName());
        }

        /**
         * 分类父ID
         * {@link SoftBusinessCategory#getCategoryParentId}
         */
        public SoftBusinessCategoryProxyFetcher categoryParentId() {
            return add(getProxy().categoryParentId());
        }

        /**
         * {@link SoftBusinessCategory#getSystemId}
         */
        public SoftBusinessCategoryProxyFetcher systemId() {
            return add(getProxy().systemId());
        }

        /**
         * 序号
         * {@link SoftBusinessCategory#getCategorySeq}
         */
        public SoftBusinessCategoryProxyFetcher categorySeq() {
            return add(getProxy().categorySeq());
        }

        @Override
        protected SoftBusinessCategoryProxyFetcher createFetcher(SoftBusinessCategoryProxy cp, AbstractFetcher<SoftBusinessCategoryProxy, SoftBusinessCategory, SoftBusinessCategoryProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new SoftBusinessCategoryProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
